package cn.zeal4j.domain;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * @author Administrator
 * @file IntelliJ IDEA Hibernate-Tutorial
 * @create 2020 09 26 22:08
 */
public class Project implements Serializable {
    private static final long serialVersionUID = -4867120608900517525L;
    private Integer projectId;
    private String projectName;
    private Set<Employee> employeeSet = new HashSet<>();

    public Project() {
    }

    public Project(Integer projectId, String projectName, Set<Employee> employeeSet) {
        this.projectId = projectId;
        this.projectName = projectName;
        this.employeeSet = employeeSet;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public Set<Employee> getEmployeeSet() {
        return employeeSet;
    }

    public void setEmployeeSet(Set<Employee> employeeSet) {
        this.employeeSet = employeeSet;
    }

    @Override
    public String toString() {
        return "Project{" +
                "projectId=" + projectId +
                ", projectName='" + projectName + '\'' +
                ", employeeSet=" + employeeSet +
                '}';
    }
}
